home *** CD-ROM | disk | FTP | other *** search
/ Nebula 1 / Nebula One.iso / Mail / pine3.92 / pico / makefile.uw2 < prev    next >
Makefile  |  1996-03-16  |  2KB  |  95 lines

  1. # $Id: makefile.uw2,v 1.3 1996/03/16 21:55:55 mikes Exp $
  2. #
  3. #   Michael Seibel
  4. #   Networks and Distributed Computing
  5. #   Computing and Communications
  6. #   University of Washington
  7. #   Administration Builiding, AG-44
  8. #   Seattle, Washington, 98195, USA
  9. #   Internet: mikes@cac.washington.edu
  10. #
  11. #   Please address all bugs and comments to "pine-bugs@cac.washington.edu"
  12. #
  13. #
  14. #   Pine and Pico are registered trademarks of the University of Washington.
  15. #   No commercial use of these trademarks may be made without prior written
  16. #   permission of the University of Washington.
  17. #
  18. #   Pine, Pico, and Pilot software and its included text are Copyright
  19. #   1989-1996 by the University of Washington.
  20. #
  21. #   The full text of our legal notices is contained in the file called
  22. #   CPYRIGHT, included with this distribution.
  23. #
  24.  
  25. #
  26. # Makefile for UnixWare 2.x version of the PINE composer library and 
  27. # stand-alone editor pico.
  28. #
  29. # [Port courtesy of Tim Rice <tim@trruw.metro.net> - hubert, 960311]
  30. #
  31.  
  32. #for GNU C
  33. #CC=         gcc
  34. #STDCFLAGS=    -DPOSIX -DJOB_CONTROL -ansi -DMOUSE
  35.  
  36. #otherwise
  37. STDCFLAGS=    -Dsv4 -DPOSIX -DJOB_CONTROL -DMOUSE
  38.  
  39. #includes symbol info for debugging 
  40. #DASHO=        -g
  41. #for normal build
  42. DASHO=        -O
  43.  
  44. CFLAGS=        $(EXTRACFLAGS) $(DASHO) $(STDCFLAGS)
  45.  
  46. # switches for library building
  47. LIBCMD=        ar
  48. LIBARGS=    ru
  49. RANLIB=        true
  50.  
  51. LIB=        $(EXTRALIBES) -ltermlib
  52.  
  53. OFILES=        attach.o ansi.o basic.o bind.o browse.o buffer.o \
  54.         composer.o display.o file.o fileio.o line.o osdep.o \
  55.         pico.o random.o region.o search.o spell.o tinfo.o \
  56.         window.o word.o
  57.  
  58. CFILES=        attach.c ansi.c basic.c bind.c browse.c buffer.c \
  59.         composer.c display.c file.c fileio.c line.c osdep.c \
  60.         pico.c random.c region.c search.c spell.c tinfo.c \
  61.         window.c word.c
  62.  
  63. HFILES=        estruct.h edef.h efunc.h ebind.h pico.h
  64.  
  65.  
  66. #
  67. # dependencies for the Unix versions of pico and libpico.a
  68. #
  69. all:        pico pilot
  70.  
  71. osdep.c:    os_unix.c
  72.         rm -f osdep.c
  73.         cp os_unix.c osdep.c
  74.  
  75. osdep.h:    os_unix.h
  76.         rm -f osdep.h
  77.         cp os_unix.h osdep.h
  78.  
  79. libpico.a:    $& osdep.c osdep.h $(OFILES)
  80.         $(LIBCMD) $(LIBARGS) libpico.a $(OFILES)
  81.         $(RANLIB) libpico.a
  82.  
  83. pico:        main.c libpico.a
  84.         $(CC) $(CFLAGS) main.c libpico.a $(LIB) -o pico
  85.  
  86. pilot:        pilot.c libpico.a
  87.         $(CC) $(CFLAGS) pilot.c libpico.a $(LIB) -o pilot
  88.  
  89. .c.o:        ; $(CC) -c $(CFLAGS) $*.c
  90.  
  91. $(OFILES):    $(HFILES)
  92.  
  93. clean:
  94.         rm -f *.a *.o *~ osdep.c osdep.h
  95.